package ex2.factoryMode;

public class Factory {
	public static IFood getInstance(String foodName) {
		switch(foodName) {
		case "Bread":{
			return new Bread();
		}
		case "Milk":{
			return new Milk();
		}
		default: return null;
		}
	}
}
